home *** CD-ROM | disk | FTP | other *** search
- <html>
-
- <head>
- <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
- <meta name="generator" content="Adobe GoLive 4">
- <title>Wipe Transition Action</title>
- </head>
-
- <body bgcolor="white">
- <center>
- <font size="6">Wipe Transition Action</font><font>
- <hr>
- </font></center>
- <p><font>
- <csactionclass name="Wipe Transition" function="CSStartWipe" nsversion="4" ieversion="4"> </font></p>
- <p><font>
- <csactionparam name="layer" type="GLActionLayerParam"> </font></p>
- <p>
- <csactionparam name="steps" type="GLActionNumParam"></p>
- <p><font>
- <csactionparam name="mode" type="GLActionEnumParam"> </font></p>
- <p><font>
- <csactionenum name="Wipe In From Left To Right" value='"_inRight"'>
- </font></p>
- <p><font>
- <csactionenum name="Wipe In From Right To Left" value='"_inLeft"'>
- </font></p>
- <p><font>
- <csactionenum name="Wipe In From Top To Bottom" value='"_inBottom"'>
- </font></p>
- <p><font>
- <csactionenum name="Wipe In From Bottom To Top" value='"_inTop"'>
- </font></p>
- <p><font>
- <csactionenum name="Wipe Out From Left To Right" value='"_outRight"'>
- </font></p>
- <p><font>
- <csactionenum name="Wipe Out From Right To Left" value='"_outLeft"'>
- </font></p>
- <p><font>
- <csactionenum name="Wipe Out From Top To Bottom" value='"_outBottom"'>
- </font></p>
- <p><font>
- <csactionenum name="Wipe Out From Bottom To Top" value='"_outTop"'>
- </font></p>
- <p><font>
- <csactionenum name="Wipe Center In" value='"_inCenter"'>
- </font></p>
- <p><font>
- <csactionenum name="Wipe Center Out" value='"_outCenter"'>
- </font></p>
- <p><font></csactionparam>
- </font></p>
- <p><font></csactionclass>
- </font></p>
- <p>
- <hr>
- </p>
- <p>IE Functions Script
- <script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
- </p>
- <p>MainLoop Functions Script
- <script language="JavaScript1.2" src="../../GlobalScripts/MainLoop.scpt"></script>
- </p>
- <p>StyleVis Functions Script
- <script language="JavaScript1.2" src="../../GlobalScripts/StyleVis.scpt" cyberversion="N1.2"></script>
- </p>
- <p>SytleTrans Functions Script
- <script language="JavaScript1.2" src="../../GlobalScripts/StyleTrans.scpt"></script>
- </p>
- <p>Wipe Transition Script<font>
- <script language="JavaScript1.2" cyberversion="N1.2"><!--
- function CSStartWipe (action)
- {
- var el=CSCreateTransElement (action[1], action[2]);
- if (el==null) return;
- var dir=action[3];
- if (dir=="_inLeft") {el.steps=el.clipRect.width/el.maxValue; el.modus="in";}
- else if (dir=="_inRight") {el.steps=el.clipRect.width/el.maxValue; el.modus="in";}
- else if (dir=="_outLeft") {el.steps=el.clipRect.width/el.maxValue; el.modus="out";}
- else if (dir=="_outRight") {el.steps=el.clipRect.width/el.maxValue; el.modus="out";}
- else if (dir=="_inTop") {el.steps=el.clipRect.height/el.maxValue; el.modus="in";}
- else if (dir=="_inBottom") {el.steps=el.clipRect.height/el.maxValue; el.modus="in";}
- else if (dir=="_outTop") {el.steps=el.clipRect.height/el.maxValue; el.modus="out";}
- else if (dir=="_outBottom") {el.steps=el.clipRect.height/el.maxValue; el.modus="out";}
- else if (dir=="_inCenter") {el.HSteps=el.clipRect.width/el.maxValue; el.VSteps=el.clipRect.height/el.maxValue; el.modus="in";}
- else if (dir=="_outCenter") {el.HSteps=el.clipRect.width/el.maxValue; el.VSteps=el.clipRect.height/el.maxValue; el.modus="out";}
- if (el.modus=="") return;
- el.currentValue=0;
- el.dir=action[3];
- CSStartFunction(CSDoWipe,el);
- }
- function CSDoWipe (info)
- {
- var el = info.data;
- if (el==null) return false;
- if (el.currentValue==el.maxValue) { CSFinishWipe(el); return false; }
- var r = new CSRect(el.clipRect.left,el.clipRect.top,el.clipRect.width,el.clipRect.height);
- var dir=el.dir;
- if (dir=="_inLeft") {r.left=r.width-el.currentValue*el.steps;}
- else if (dir=="_inTop") {r.top=r.height-el.currentValue*el.steps;}
- else if (dir=="_inRight") {r.width=el.currentValue*el.steps;}
- else if (dir=="_inBottom") {r.height=el.currentValue*el.steps;}
- else if (dir=="_outLeft") {r.width=r.width-el.currentValue*el.steps;}
- else if (dir=="_outTop") {r.height=r.height-el.currentValue*el.steps;}
- else if (dir=="_outRight") {r.left=el.currentValue*el.steps;}
- else if (dir=="_outBottom") {r.top=el.currentValue*el.steps;}
- else if (dir=="_inCenter") {r=CSCenterRectIn(el,r);}
- else if (dir=="_outCenter") {r=CSCenterRectOut(el,r);}
- CSSetLayerClip(el,r);
- el.currentValue+=1;
- return true;
- }
- function CSFinishWipe (el)
- {
- if (el.modus=="in") CSSetLayerClip(el,el.clipRect);
- else {
- el.clipRect=new CSRect(0,0,el.width,el.height);
- CSSetLayerClip(el,el.clipRect);
- CSSetStyleVis(el.layer,0);
- }
- CSDisposeTransElement(el);
- }
- function CSCenterRectIn(el,r)
- {
- var hValue= el.currentValue*el.HSteps/2;
- var vValue= el.currentValue*el.VSteps/2;
- r.left=Math.round(r.left+r.width/2-hValue);
- r.top=Math.round(r.top+r.height/2-vValue);
- r.width=Math.round(hValue*2);
- r.height=Math.round(vValue*2);
- return r;
- }
- function CSCenterRectOut(el,r)
- {
- var hValue= el.currentValue*el.HSteps/2;
- var vValue= el.currentValue*el.VSteps/2;
- r.left+=Math.round(hValue);
- r.top+=Math.round(vValue);
- r.width-=Math.round(hValue*2);
- r.height-=Math.round(vValue*2);
- return r;
- }
- // -->
- </script>
- </font></p>
- <p>
- <hr>
- </p>
- <p> </p>
- <p><font>
- <table cool width="253" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
- <tr height="1" cntrlrow>
- <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
- <td width="10" height="1"><spacer type="block" width="10" height="1"></td>
- <td width="80" height="1"><spacer type="block" width="80" height="1"></td>
- <td width="160" height="1"><spacer type="block" width="160" height="1"></td>
- </tr>
- <tr height="2">
- <td width="1" height="2"><spacer type="block" width="1" height="2"></td>
- <td width="10" height="2"><spacer type="block" width="10" height="2"></td>
- <td width="80" height="2"><spacer type="block" width="80" height="2"></td>
- <td width="160" height="2"><spacer type="block" width="160" height="2"></td>
- </tr>
- <tr height="3">
- <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
- <td width="10" height="3"><spacer type="block" width="10" height="3"></td>
- <td width="80" height="3"><spacer type="block" width="80" height="3"></td>
- <td width="160" height="26" colspan="1" rowspan="2" valign="top" align="left" xpos="90">
- <csactioncntrl name="layer" x="90" y="2" width="140" height="18" alignx="scale" aligny="top">
- </td>
- </tr>
- <tr height="23">
- <td width="1" height="23"><spacer type="block" width="1" height="23"></td>
- <td width="10" height="23"><spacer type="block" width="10" height="23"></td>
- <td width="80" height="23" colspan="1" rowspan="1" valign="top" align="left" xpos="10">
- <csactioncntrl type="StaticText" value="Floating Box" x="10" y="5" width="70" height="17" alignx="left" aligny="top">
- </td>
- </tr>
- <tr height="3">
- <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
- <td width="10" height="3"><spacer type="block" width="10" height="3"></td>
- <td width="80" height="3"><spacer type="block" width="80" height="3"></td>
- <td width="160" height="27" colspan="1" rowspan="2" valign="top" align="left" xpos="90">
- <csactioncntrl name="mode" x="90" y="28" width="140" height="18" alignx="scale" aligny="top">
- </td>
- </tr>
- <tr height="24">
- <td width="1" height="24"><spacer type="block" width="1" height="24"></td>
- <td width="10" height="24"><spacer type="block" width="10" height="24"></td>
- <td width="80" height="24" colspan="1" rowspan="1" valign="top" align="left" xpos="10">
- <csactioncntrl type="StaticText" value="Transition" x="10" y="31" width="72" height="16" alignx="left" aligny="top">
- </td>
- </tr>
- <tr height="3">
- <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
- <td width="10" height="3"><spacer type="block" width="10" height="3"></td>
- <td width="80" height="3"><spacer type="block" width="80" height="3"></td>
- <td width="160" height="95" colspan="1" rowspan="2" valign="top" align="left" xpos="90">
- <csactioncntrl name="steps" x="90" y="55" width="63" height="18" alignx="left" aligny="top">
- </td>
- </tr>
- <tr height="92">
- <td width="1" height="92"><spacer type="block" width="1" height="92"></td>
- <td width="10" height="92"><spacer type="block" width="10" height="92"></td>
- <td width="80" height="92" colspan="1" rowspan="1" valign="top" align="left" xpos="10">
- <csactioncntrl type="StaticText" value="Steps" x="10" y="58" width="35" height="16" alignx="left" aligny="top">
- </td>
- </tr>
- </table>
- </font></p>
- <p>
- </body>
-
- </html>
-